package services

import (
	"new/dao"
	"new/models"
)

//显示体检表信息
func GetAllphysical_exam() (error, []models.Physical_exam, int64) {
	err, Physical_examdata, total := dao.GetAllphysical_exam()
	return err, Physical_examdata, total
}

//删除体检表信息
func DelPhysical_exam(pno int) error {
	err := dao.Delphysical_exam(pno)
	return err
}

//更改体检表信息
func UpdatePhysical_exam(Physical_exam models.Physical_exam) error {
	err := dao.Updatephysical_exam(Physical_exam)
	return err
}

//增加体检表信息
func AddPhysical_exam(Physical_exam models.Physical_exam) error {
	err := dao.AddPhysical_exam(Physical_exam)
	return err
}
